//package com.demo.modules.facade.feign;
//
//import com.demo.common.result.Result;
//import feign.hystrix.FallbackFactory;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.stereotype.Component;
//
///**
// * Feign远程调用失败实现
// *
// * @author zx
// */
//@Component
//public class FeignClientFallback implements FallbackFactory<Result<Object>> {
//    private static final Logger log = LoggerFactory.getLogger(FeignClientFallback.class);
//
//    /**
//     * feign 熔断
//     */
//    @Override
//    public Result<Object> create(Throwable args) {
//        log.error("调用远程接口触发熔断.{}", args.getMessage());
//        return Result.error(400, "接口远程调用失败");
//    }
//}
